package com.ymatou.iapi.productquery.service;

import java.util.List;

import org.json.JSONObject;

import com.ymatou.iapi.productquery.compare.ProductQueryInterface;
import com.ymttest.business.YmatouAutoTestCall;
import com.ymttest.utils.EnvSetup;
import com.ymttest.utils.MapUtil;

public class GetProductDescExtraByProductIdCall extends YmatouAutoTestCall  implements ProductQueryInterface{
private static String opurl="api/Product/GetProductDescExtraByProductId";
	
	public GetProductDescExtraByProductIdCall(){
		super(EnvSetup.getSystemUrl("productquery"), opurl, "GET", "JSON");
	}
	
	
	@Override
	public void addDefHeader(){
	}
	
	public JSONObject callAndGetReturnData(String productId){
		return callAndGetReturnData(MapUtil.hashMap("ProductId",productId));
	}
	
	@Override
	public JSONObject search(List<String> list) {
		return callAndGetReturnData(list.get(0));
	}
	
	public static void main(String[] args) {
		new GetProductDescExtraByProductIdCall().callAndGetReturnData("3be45de7-1301-42f7-888c-278657e98336");
	}
}
